/**
 */
package org.mro.grib.model.files.firstEdition;

import org.eclipse.emf.ecore.EObject;
import org.mro.grib.core.GribException;
import org.mro.grib.model.files.firstEdition.sections.BinaryDataSection;
import org.mro.grib.model.files.firstEdition.sections.BitMapSection;
import org.mro.grib.model.files.firstEdition.sections.GridDefinitionSection;
import org.mro.grib.model.files.firstEdition.sections.IndicatorSection;
import org.mro.grib.model.files.firstEdition.sections.ProductDefinitionSection;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Message</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getStartOffset <em>Start Offset</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getEndOffset <em>End Offset</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getIndicatorSection <em>Indicator Section</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getProductDefinitionSection <em>Product Definition Section</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getGridDefinitionSection <em>Grid Definition Section</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getBitMapSection <em>Bit Map Section</em>}</li>
 *   <li>{@link org.mro.grib.model.files.firstEdition.Message#getBinaryDataSection <em>Binary Data Section</em>}</li>
 * </ul>
 * </p>
 *
 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage()
 * @model
 * @generated
 */
public interface Message extends EObject {
	/**
	 * Returns the value of the '<em><b>Start Offset</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Start Offset</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Start Offset</em>' attribute.
	 * @see #setStartOffset(long)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_StartOffset()
	 * @model required="true"
	 * @generated
	 */
	long getStartOffset();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getStartOffset <em>Start Offset</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Start Offset</em>' attribute.
	 * @see #getStartOffset()
	 * @generated
	 */
	void setStartOffset(long value);

	/**
	 * Returns the value of the '<em><b>End Offset</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>End Offset</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>End Offset</em>' attribute.
	 * @see #setEndOffset(long)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_EndOffset()
	 * @model required="true"
	 * @generated
	 */
	long getEndOffset();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getEndOffset <em>End Offset</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>End Offset</em>' attribute.
	 * @see #getEndOffset()
	 * @generated
	 */
	void setEndOffset(long value);

	/**
	 * Returns the value of the '<em><b>Indicator Section</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Indicator Section</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Indicator Section</em>' containment reference.
	 * @see #setIndicatorSection(IndicatorSection)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_IndicatorSection()
	 * @model containment="true" required="true"
	 * @generated
	 */
	IndicatorSection getIndicatorSection();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getIndicatorSection <em>Indicator Section</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Indicator Section</em>' containment reference.
	 * @see #getIndicatorSection()
	 * @generated
	 */
	void setIndicatorSection(IndicatorSection value);

	/**
	 * Returns the value of the '<em><b>Product Definition Section</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Product Definition Section</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Product Definition Section</em>' containment reference.
	 * @see #setProductDefinitionSection(ProductDefinitionSection)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_ProductDefinitionSection()
	 * @model containment="true" required="true"
	 * @generated
	 */
	ProductDefinitionSection getProductDefinitionSection();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getProductDefinitionSection <em>Product Definition Section</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Product Definition Section</em>' containment reference.
	 * @see #getProductDefinitionSection()
	 * @generated
	 */
	void setProductDefinitionSection(ProductDefinitionSection value);

	/**
	 * Returns the value of the '<em><b>Grid Definition Section</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Grid Definition Section</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Grid Definition Section</em>' containment reference.
	 * @see #setGridDefinitionSection(GridDefinitionSection)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_GridDefinitionSection()
	 * @model containment="true"
	 * @generated
	 */
	GridDefinitionSection getGridDefinitionSection();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getGridDefinitionSection <em>Grid Definition Section</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Grid Definition Section</em>' containment reference.
	 * @see #getGridDefinitionSection()
	 * @generated
	 */
	void setGridDefinitionSection(GridDefinitionSection value);

	/**
	 * Returns the value of the '<em><b>Bit Map Section</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Bit Map Section</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Bit Map Section</em>' containment reference.
	 * @see #setBitMapSection(BitMapSection)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_BitMapSection()
	 * @model containment="true"
	 * @generated
	 */
	BitMapSection getBitMapSection();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getBitMapSection <em>Bit Map Section</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Bit Map Section</em>' containment reference.
	 * @see #getBitMapSection()
	 * @generated
	 */
	void setBitMapSection(BitMapSection value);

	/**
	 * Returns the value of the '<em><b>Binary Data Section</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Binary Data Section</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Binary Data Section</em>' containment reference.
	 * @see #setBinaryDataSection(BinaryDataSection)
	 * @see org.mro.grib.model.files.firstEdition.FirstEditionPackage#getMessage_BinaryDataSection()
	 * @model containment="true" required="true"
	 * @generated
	 */
	BinaryDataSection getBinaryDataSection();

	/**
	 * Sets the value of the '{@link org.mro.grib.model.files.firstEdition.Message#getBinaryDataSection <em>Binary Data Section</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Binary Data Section</em>' containment reference.
	 * @see #getBinaryDataSection()
	 * @generated
	 */
	void setBinaryDataSection(BinaryDataSection value);

	/**
	 * 
	 * @param startOffset
	 * @param endOffset
	 * @param length
	 * @param binarySection
	 */
	void buildIndicatorSection(long startOffset, long endOffset, byte edition, int messageLength);
	
	/**
	 * 
	 * @param startOffset
	 * @param endOffset
	 * @param length
	 * @param binarySection
	 */
	void buildProductDefinitionSection(long startOffset, long endOffset, int length, byte[] binarySection);
	
	/**
	 * 
	 * @param startOffset
	 * @param endOffset
	 * @param length
	 * @param binarySection
	 * @throws GribException
	 */
	void buildGridDefinitionSection(long startOffset, long endOffset, int length, byte[] binarySection) throws GribException;
	
	
	/**
	 * 
	 * @param startOffset
	 * @param endOffset
	 * @param length
	 * @param binarySection
	 */
	void buildBitmapSection(long startOffset, long endOffset, int length, byte[] binarySection);
	
	/**
	 * 
	 * @param startOffset
	 * @param endOffset
	 * @param length
	 * @param binarySection
	 */
	void buildBinaryDataSection(long startOffset, long endOffset, int length, byte[] binarySection);
	
} // Message
